package JavaSE_core.IO;

import java.io.Serializable;

public class Person implements Serializable{

	private static final long serialVersionUID = 4150666890932065578L;//序列化编号用于对象序列化与反序列化时唯一标识一个类
	
	private String name;
	private int age;
	
	public Person() {
	}
	
	public Person(String name, int age) {
		super();
		this.name = name;
		this.age = age;
	}


	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	
	
}
